package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.mapper.MemoryMapper;
import org.example.pojo.entity.Memory;
import org.example.result.Result;
import org.example.service.MemoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MemoryImpl extends ServiceImpl<MemoryMapper, Memory> implements MemoryService {

    @Autowired
    MemoryMapper memoryMapper;

    @Override
    public Result<String> addMemory(Memory memory){
        memoryMapper.insert(memory);

        return Result.success("success");
    }
}
